package com.shoes.service;

import com.shoes.model.ResponseDO;

/**
 * @author asen
 */
public interface UserService {
    ResponseDO getUserInfo(long userId, long toUid) throws Exception;
    ResponseDO getAuthCode(String phoneNumber, Integer sendCode) throws Exception;
    ResponseDO checkRegister(String phoneNumber) throws Exception;
    ResponseDO userLogin(String phoneNumber, String password) throws Exception;
    ResponseDO userRegister(String phoneNumber, String password) throws Exception;
    ResponseDO userLogout(String userId) throws Exception;
    ResponseDO thirdPartyLogin(String type, String account, String token) throws Exception;
    ResponseDO thirdPartyRegister(String type, String account) throws Exception;
    ResponseDO changePassword(long userId, String oldPassword, String newPassword) throws Exception;
    ResponseDO resetPassword(String phoneNumber, String newPassword) throws Exception;
}
